package com.example.myapplication.entity

import android.os.Parcel
import android.os.Parcelable

class PlanBean(
    var id: String = "",
    var jhname: String = "",
    var qsrq: String = "",
    var zzrq: String = "",
) : Parcelable {
    constructor(parcel: Parcel) : this(
        parcel.readString() ?: "",
        parcel.readString() ?: "",
        parcel.readString() ?: "",
        parcel.readString() ?: ""
    ) {
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeString(id)
        parcel.writeString(jhname)
        parcel.writeString(qsrq)
        parcel.writeString(zzrq)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<PlanBean> {
        override fun createFromParcel(parcel: Parcel): PlanBean {
            return PlanBean(parcel)
        }

        override fun newArray(size: Int): Array<PlanBean?> {
            return arrayOfNulls(size)
        }
    }
}